﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeFile="~/Admin/Hoidong.aspx.cs" CodeBehind="Hoidong.aspx.cs" Inherits="NCKH.Admin.Hoidong" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="margin-left:200px">
     <fieldset style="width:400px">
         <legend style="text-align:center">QUẢN LÝ HỘI ĐỒNG</legend>
        <table>
         
            <tr>
                <td>Tên hội đồng</td>
                <td>
                      <asp:TextBox ID="txtTenHD" runat="server" Height="25px" Width="167px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvTenHD" runat="server" ControlToValidate="txtTenHD" Display="Dynamic" ErrorMessage="Hãy nhập"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Số quyết định</td>
                <td>
                      <asp:TextBox ID="txtquyetdinh" runat="server" Height="25px" Width="167px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Mô tả</td>
              
                <td>
                      <asp:TextBox ID="txtmota" runat="server" Height="25px" Width="167px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td>Trạng Thái</td>
                <td>
                    <asp:DropDownList ID="ddlTrangthai" runat="server">
                        <asp:ListItem Value="chon">--Hãy chọn--</asp:ListItem>
                       <asp:ListItem Value="Hội đồng mới">Hội đồng mới</asp:ListItem>
                       <asp:ListItem Value="Hội đồng đã họp">Hội đồng đã họp</asp:ListItem>
                    </asp:DropDownList>
                </td>   
            </tr>
            <tr>
           <td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td >
                <asp:ImageButton ID="ibtThem" runat="server" ImageUrl="../Images/Save%20(1).png" OnClick="ibtThem_Click" CommandName="Thêm" />Lưu lại &nbsp;
            
                <asp:ImageButton ID="ibtHuy" runat="server" ImageUrl="../Images/xoa.png"  OnClick="ibtHuy_Click" CommandName="Xóa" Height="31px" Width="38px" />Hủy bỏ &nbsp;
            </td>
        </tr>   
            <tr>
               <td>&nbsp;&nbsp;&nbsp;Nhập thông tin&nbsp;&nbsp;&nbsp;</td> 
                
                <td>
                    <asp:TextBox ID="txtTimkiem" runat="server" Height="24px" Width="204px"></asp:TextBox>
                </td>
                <td>
                     <asp:ImageButton ID="ibtTimkiem" runat="server" ImageUrl="../Images/search.png"  CausesValidation="false"  OnClick="ibtTimkiem_Click"  />
          
                </td>
            </tr>
             
        </table>
         </fieldset>
        </div>
        <br />
         <br />
        <div style="margin-left:10px" >
        <fieldset > 
            <legend>DANH SÁCH HỘI ĐỒNG</legend>
        <asp:GridView ID="grvhoidong" runat="server" AutoGenerateColumns="false" CellSpacing="25" CellPadding="20" EnableModelValidation="false"
             onrowcommand="grvhoidong_RowCommand" DataKeyNames="MaHiD"  AllowPaging="true" PageSize="5" 
            onpageindexchanging="grvhoidong_PageIndexChanging">
            <Columns>
                <asp:TemplateField HeaderText="&nbsp;&nbsp; Chọn &nbsp;&nbsp;">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkchon" runat="server" />
                     
                    </ItemTemplate>
                </asp:TemplateField>
               <asp:TemplateField HeaderText="&nbsp;&nbsp;STT &nbsp;&nbsp;">
                    <ItemTemplate>
                    <%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>
               </asp:TemplateField>
                <asp:BoundField HeaderText="&nbsp;&nbsp;Tên hội đồng &nbsp;&nbsp;" DataField="TenHiD" />
               <asp:BoundField HeaderText="&nbsp;&nbsp;Số quyết định &nbsp;&nbsp;" DataField="Soquyetdinh" />
                <asp:BoundField HeaderText="&nbsp;&nbsp;&nbsp;&nbsp;Mô tả &nbsp;&nbsp;&nbsp;&nbsp;" DataField="Mota" />
                <asp:BoundField HeaderText="&nbsp;&nbsp;Trạng thái &nbsp;&nbsp;" DataField="Trangthai" />
                <asp:TemplateField HeaderText="&nbsp;&nbsp;&nbsp;&nbsp;Xoá &nbsp;&nbsp;&nbsp;&nbsp;">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtxoa" runat="server" CommandName="xoa" CommandArgument='<%# Eval("MaHiD") %>'
                             OnClientClick='return confirm("Có chắc chắn muốn xoá không?");'>
                        <img src="../Images/xoa.png" alt="Xóa" title="Xóa" /></asp:LinkButton>
                       
                    </ItemTemplate>
                    
                </asp:TemplateField>
                <asp:TemplateField HeaderText=" &nbsp;&nbsp;&nbsp;&nbsp;Sửa &nbsp;&nbsp;&nbsp;&nbsp;">
                    <ItemTemplate>
                   <a href='Hoidong_Sua.aspx?pid=<%# Eval("MaHiD") %>'>
                       <img src="images/edit.png" alt="Sửa" title="Sửa" /></a>
                    </ItemTemplate>
                     
                </asp:TemplateField>
            </Columns>   
        </asp:GridView> 
            </fieldset>
       <div style="text-align:left">
            <asp:ImageButton ID="ibtXoa" runat="server" ImageUrl="../Images/delete.png" OnClick="ibtXoa_Click" CausesValidation="false" CommandName="Xóa" Height="31px" Width="25px" />
       </div>
       </div>
</asp:Content>